<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<script>

    
    var result =1;
    var syntex="";
    function factorial(param){
        if(param >=1){
            result*=param;
            syntex+=param;
            console.log("결과 : "+result +", "+syntex);
            arguments.callee(param-1);
        }
        return result;
    }
    //console.log(factorial(Number(data3)));
    //window.onload=factorial(Number(data3));
    // 익명함수 : 1회용
    (function(){console.log("sayHello");})();
    
   
    
</script>
</head>
<body>

</body>
</html>